export const useGenerateTxt = () => {
  const { getSetValue } = chatSettingStore();
  const apiConfig = getSetValue("api");
  const apiMap = {
    OpenAI: OpenAIApi(),
    Claude: ClaudeApi(),
  };
  return apiMap[apiConfig("apiType") as keyof typeof apiMap];
};
